/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DAO;

import Entity.Sach;
import java.sql.ResultSet;

/**
 *
 * @author copang
 */
public interface SachDAO {
    boolean add(Sach data);
    boolean delete(int MaSach);
    boolean edit(Sach data);
    boolean subSoLuongTon(int maSach, int soLuong);
    
    ResultSet getAll();
    
    ResultSet findByTenSach(String name);
    ResultSet findByNXB(String name);
    ResultSet findByTheLoai(String name);
    ResultSet findByTacGia(String name);
    
    ResultSet getAllWithTenSach();
}
